package com.lzw.mapper;

import com.lzw.bean.MenuNode;
import com.lzw.bean.UserRole;
import com.lzw.common.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by 林志伟 on 2017/5/11.
 */

@Mapper
@Repository
public interface UserRoleMapper extends BaseMapper<UserRole> {

    public int insertAll(List<UserRole> userRoles);

    public int deleteOther(@Param("user_id") int menu_id, @Param("role_ids") int[] role_ids);

    public UserRole findByUserIdRoleId(@Param("user_id") int user_id, @Param("role_id") int role_id);
}
